package dataObjects;

/**
 * AbstractShmedicineinfoId entity provides the base persistence definition of
 * the ShmedicineinfoId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractShmedicineinfoId implements java.io.Serializable {

	// Fields

	private String tag;
	private String firstName;
	private String lastName;
	private String medicineName;
	private String quantity;
	private String frequency;
	private String duration;
	private String options;
	private String comments;

	// Constructors

	/** default constructor */
	public AbstractShmedicineinfoId() {
	}

	/** full constructor */
	public AbstractShmedicineinfoId(String tag, String firstName,
			String lastName, String medicineName, String quantity,
			String frequency, String duration, String options, String comments) {
		this.tag = tag;
		this.firstName = firstName;
		this.lastName = lastName;
		this.medicineName = medicineName;
		this.quantity = quantity;
		this.frequency = frequency;
		this.duration = duration;
		this.options = options;
		this.comments = comments;
	}

	// Property accessors

	public String getTag() {
		return this.tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getMedicineName() {
		return this.medicineName;
	}

	public void setMedicineName(String medicineName) {
		this.medicineName = medicineName;
	}

	public String getQuantity() {
		return this.quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	public String getFrequency() {
		return this.frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}

	public String getDuration() {
		return this.duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getOptions() {
		return this.options;
	}

	public void setOptions(String options) {
		this.options = options;
	}

	public String getComments() {
		return this.comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractShmedicineinfoId))
			return false;
		AbstractShmedicineinfoId castOther = (AbstractShmedicineinfoId) other;

		return ((this.getTag() == castOther.getTag()) || (this.getTag() != null
				&& castOther.getTag() != null && this.getTag().equals(
				castOther.getTag())))
				&& ((this.getFirstName() == castOther.getFirstName()) || (this
						.getFirstName() != null
						&& castOther.getFirstName() != null && this
						.getFirstName().equals(castOther.getFirstName())))
				&& ((this.getLastName() == castOther.getLastName()) || (this
						.getLastName() != null
						&& castOther.getLastName() != null && this
						.getLastName().equals(castOther.getLastName())))
				&& ((this.getMedicineName() == castOther.getMedicineName()) || (this
						.getMedicineName() != null
						&& castOther.getMedicineName() != null && this
						.getMedicineName().equals(castOther.getMedicineName())))
				&& ((this.getQuantity() == castOther.getQuantity()) || (this
						.getQuantity() != null
						&& castOther.getQuantity() != null && this
						.getQuantity().equals(castOther.getQuantity())))
				&& ((this.getFrequency() == castOther.getFrequency()) || (this
						.getFrequency() != null
						&& castOther.getFrequency() != null && this
						.getFrequency().equals(castOther.getFrequency())))
				&& ((this.getDuration() == castOther.getDuration()) || (this
						.getDuration() != null
						&& castOther.getDuration() != null && this
						.getDuration().equals(castOther.getDuration())))
				&& ((this.getOptions() == castOther.getOptions()) || (this
						.getOptions() != null && castOther.getOptions() != null && this
						.getOptions().equals(castOther.getOptions())))
				&& ((this.getComments() == castOther.getComments()) || (this
						.getComments() != null
						&& castOther.getComments() != null && this
						.getComments().equals(castOther.getComments())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTag() == null ? 0 : this.getTag().hashCode());
		result = 37 * result
				+ (getFirstName() == null ? 0 : this.getFirstName().hashCode());
		result = 37 * result
				+ (getLastName() == null ? 0 : this.getLastName().hashCode());
		result = 37
				* result
				+ (getMedicineName() == null ? 0 : this.getMedicineName()
						.hashCode());
		result = 37 * result
				+ (getQuantity() == null ? 0 : this.getQuantity().hashCode());
		result = 37 * result
				+ (getFrequency() == null ? 0 : this.getFrequency().hashCode());
		result = 37 * result
				+ (getDuration() == null ? 0 : this.getDuration().hashCode());
		result = 37 * result
				+ (getOptions() == null ? 0 : this.getOptions().hashCode());
		result = 37 * result
				+ (getComments() == null ? 0 : this.getComments().hashCode());
		return result;
	}

}